/**
 * @Author: Boring
 * @Description:
 * @File:  node
 * @Date: 2024-03-02 14:50
 */

package node

import (
	"github.com/gin-gonic/gin"
	"oam-manage-backend/controllers/node"
)

func update(nodeGroup *gin.RouterGroup) {
	nodeGroup.PUT("/update", node.Update)
}

func get(nodeGroup *gin.RouterGroup) {
	nodeGroup.GET("/get", node.Get)
}

func list(nodeGroup *gin.RouterGroup) {
	nodeGroup.GET("/list", node.List)
}

func RegisterSubRouter(g *gin.RouterGroup) {
	nodeGroup := g.Group("/node")
	update(nodeGroup)
	get(nodeGroup)
	list(nodeGroup)
}
